package com.starchen.optimalselection.admin.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author daxilong
 * @date 2025/3/21 10:36
 */
@Data
@ApiModel(description = "角色实体类")
@TableName("sys_role")
public class AdminRole {

    @ApiModelProperty(value = "唯一标识")
    @TableId
    private Long id;

    @ApiModelProperty(value = "角色名称")
    private String roleName;

    @ApiModelProperty(value = "角色编码")
    private String roleCode;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "逻辑删除 默认0 未删除 1删除")
    @TableLogic
    private boolean isDeleted;
}
